package com.xyy.scaffoldweb;

import com.xyy.scaffoldcommon.util.JsonData;
import com.xyy.scaffolddao.vo.MovieVO;
import com.xyy.scaffoldservice.MovieService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class MovieController {

    @Resource
    MovieService movieService;

    @GetMapping("/get_movie_list")
    public JsonData getMovieList() {
        return JsonData.buildSuccess(movieService.getMovieList());
    }

    @GetMapping("/select_movie_list")
    public JsonData selectMovieList() {
        return JsonData.buildSuccess(movieService.selectMovieList());
    }

    @GetMapping("/select_more_movie_list")
    public JsonData selectMoreMovieList() {
        return JsonData.buildSuccess(movieService.selectMoreMovieList());
    }

    @GetMapping("/select_movie_detail")
    public JsonData selectMovieDetail() {
        return JsonData.buildSuccess(movieService.selectMovieDetail());
    }
}
